home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xpaint-2.1.1 / Colormap.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  2KB  |  68 lines

  1. #ifndef _Colormap_h
  2. #define _Colormap_h
  3.  
  4. /* +-------------------------------------------------------------------+ */
  5. /* | Copyright 1992, 1993, David Koblas (koblas@netcom.com)            | */
  6. /* |                                                                   | */
  7. /* | Permission to use, copy, modify, and to distribute this software  | */
  8. /* | and its documentation for any purpose is hereby granted without   | */
  9. /* | fee, provided that the above copyright notice appear in all       | */
  10. /* | copies and that both that copyright notice and this permission    | */
  11. /* | notice appear in supporting documentation.  There is no           | */
  12. /* | representations about the suitability of this software for        | */
  13. /* | any purpose.  this software is provided "as is" without express   | */
  14. /* | or implied warranty.                                              | */
  15. /* |                                                                   | */
  16. /* +-------------------------------------------------------------------+ */
  17.  
  18.  
  19. /****************************************************************
  20.  *
  21.  * Colormap widget
  22.  *
  23.  ****************************************************************/
  24.  
  25. /* Resources:
  26.  
  27.  Name             Class        RepType        Default Value
  28.  ----             -----        -------        -------------
  29.  background         Background        Pixel        XtDefaultBackground
  30.  border             BorderColor    Pixel        XtDefaultForeground
  31.  borderWidth         BorderWidth    Dimension    1
  32.  destroyCallback     Callback        Pointer        NULL
  33.  height             Height        Dimension    0
  34.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  35.  sensitive         Sensitive        Boolean        True
  36.  width             Width        Dimension    0
  37.  x             Position        Position    0
  38.  y             Position        Position    0
  39.  
  40. */
  41.  
  42. /* define any special resource names here that are not in <X11/StringDefs.h> */
  43.  
  44. #define XtNcellWidth  "cellWidth"
  45. #define XtNcellHeight "cellHeight"
  46. #define XtNcolor      "color"
  47. #define XtNreadOnly   "readOnly"
  48.  
  49. #define XtCCellWidth  "CellWidth"
  50. #define XtCCellHeight "CellHeight"
  51. #ifndef XtCColor
  52. #define XtCColor      "Color"
  53. #endif
  54.  
  55. /* declare specific ColormapWidget class and instance datatypes */
  56.  
  57. typedef struct _ColormapClassRec*    ColormapWidgetClass;
  58. typedef struct _ColormapRec*        ColormapWidget;
  59.  
  60. /* declare the class constant */
  61.  
  62. extern WidgetClass colormapWidgetClass;
  63.  
  64. extern void CwGetColor(Widget, XColor *);
  65. extern void CwSetColor(Widget, XColor *);
  66.  
  67. #endif /* _Colormap_h */
  68.